﻿using ED.Common.BaseModel;
using ED.Model.Response.Menu;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ED.IService
{
    public interface IMenuOperationService
    {
        /// <summary>
        /// 菜单添加修改
        /// </summary>
        /// <param name="menuReq">请求参数</param>
        /// <returns></returns>
        public ResponseOutput UpdateOrInsert(MenuReq menuReq);

        /// <summary>
        /// 菜单删除
        /// </summary>
        /// <param name="menuReq">请求参数</param>
        /// <returns></returns>
        public Tuple<bool, string> Delete(int id);

        /// <summary>
        /// 菜单列表
        /// </summary>
        /// <param name="menuReq">请求参数</param>
        /// <returns></returns>
        public ResponseOutput<List<MenuRoot>> GetMenuList(MenuReq menuReq);
    }
}
